package com.tang.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 这个类的是包装了责任链处理过程中返回结果的类，方面处理每个责任链的返回信息
 *
 * @author fulin.tang
 * @version V3.0
 * @since 2021/9/30 18:05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AuthInfo {

    private String code;
    private String info = "";

    public AuthInfo(String code, String... infos) {
        this.code = code;
        for (String info : infos) {
            this.info = this.getInfo().concat(info);
        }
    }

}
